import request from '@/utils/request'

// 查询角色列表
export function list(query) {
  return request({
    url: '/api/tzxm/pzserviceitem/list',
    method: 'get',
    params: query
  })
}

// 新增数据
export function addApi(data) {
  return request({
    url: "/api/tzxm/pzserviceitem",
    method: 'post',
    data: data
  })
}

// 查询详细
export function getInfo(id) {
  return request({
    url: '/api/tzxm/pzserviceitem/' + id,
    method: 'get'
  })
}

// 修改数据
export function editApi(data) {
  return request({
    url:'/api/tzxm/pzserviceitem',
    method: 'put',
    data: data
  })
}

// 删除数据
export function delApi(ids) {
  return request({
    url: '/api/tzxm/pzserviceitem/' + ids,
    method: 'delete'
  })
}

//
export function allapproveItemNameList() {
  return request({
    url: '/api/tzxm/pzserviceitem/approveItemNameList',
    method: 'get'
  })
}

export function allServiceTypeIdList() {
  return request({
    url: '/api/tzxm/pzserviceitem/serviceTypeIdList',
    method: 'get'
  })
}

// 委托方列表
export function allConsigorList() {
  return request({
    url: '/api/tzxm/pzserviceitem/consigorList',
    method: 'get'

  })
}

// 资质等级列表
export function allCertificateGradeList() {
  return request({
    url: '/api/tzxm/pzserviceitem/certificateGradeList',
    method: 'get'

  })
}

// 委托类型列表
export function allDelegateTypeIdList() {
  return request({
    url: '/api/tzxm/pzserviceitem/delegateTypeIdList',
    method: 'get'
  })
}
// 是否收费列表
export function allServiceChargeList() {
  return request({
    url: '/api/tzxm/pzserviceitem/serviceChargeList',
    method: 'get'
  })
}

// 收费方列表
export function allPaymentList() {
  return request({
    url: '/api/tzxm/pzserviceitem/paymentList',
    method: 'get'
  })
}
